package com.xuecheng.orders.api;

import com.xuecheng.orders.model.po.XcPayRecord;
import com.xuecheng.orders.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class PayOrderController {
    @Autowired
    OrderService orderService;
    @GetMapping("/payorderslist")
    public List<XcPayRecord> listOrders()
    {
        return orderService.selectPayOrders();
    }
    @GetMapping("/payorders/w")
    public List<XcPayRecord> w()
    {
        return orderService.selectPayOrdersW();
    }
    @GetMapping("/payorders/y")
    public List<XcPayRecord> y()
    {
        return orderService.selectPayOrdersY();
    }
}
